<?php


class UsersController extends AppController {
	var $name = "Users";
	
	
	
	function beforeFilter() {
		parent::beforeFilter();
	}

	
	
	
	
	
	function register() {
	
	
	}
	
	
	
	
	function login() {
	
	
		if($this->Auth->user()) 
			$this->redirect($this->Auth->redirect());
			
	
	
	}
	
	
	
	
	function logout() {
	
		if($this->Auth->user()) {
			$this->Session->setFlash('You are logged out.');
			$this->Auth->logout();
		}
		$this->redirect('/',NULL,TRUE);
	
	}
}
	
?>